#ifndef GV_SYSTEMCOMCONFIGURATIONDIALOG_H
#define GV_SYSTEMCOMCONFIGURATIONDIALOG_H
#include<QtGui>
#include <QtGui/QWidget>
#include <QtCore/QTextCodec>
#include <QDialog>
#include "ui_systemcomconfiguration.h"
class QTimer;
enum{
    PARITYNONEENABLED=0,
    PARITYODDENABLED,
    PARITYEVENENABLED,

    DATABITS7ENABLED,
    DATABITS8ENABLED,

    STOPBITS1ENABLED,
    STOPBITS2ENABLED
};
class GV_SystemCOMConfigurationDialog:public QDialog, public Ui::SystemCOMConfigurationDialog
{
    Q_OBJECT
signals:
    void currentTime();
public:
    GV_SystemCOMConfigurationDialog(QWidget *parent = 0);

    QTimer *timer;
private slots:
    void GV_chTime();
    void home();
    void bandrateclicked();
    void parityclicked();
    void databitsclicked();
    void stopbitsclicked();
    void detailedviewclicked();

    void bandrateselected();
    void parityframeselected();
    void databitsframeselected();
    void stopbitsframeselected();

    void accept();
    void cancel();

private:
    int parityEnabled;
    int databitsEnabled;
    int stopbitsEnabled;
    int bandrate;
    void reloadtext();

};
#endif // GV_SYSTEMCOMCONFIGURATIONDIALOG_H
